package com.pinxixi.api.template;

import com.pinxixi.framework.domain.template.Template;
import com.pinxixi.framework.model.response.ListResponseResult;
import com.pinxixi.framework.model.response.QueryResponseResult;
import com.pinxixi.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value="模版微服务API",description = "模版微服务CRUD")
public interface TemplateControllerApi {

    @ApiOperation("模版列表接口")
    ListResponseResult<Template> findAll();

    @ApiOperation("模版分页接口")
    ListResponseResult<Template> findPage(Integer page, Integer size, Template template);

    @ApiOperation("模版查询接口")
    QueryResponseResult<Template> findOne(Integer id);

    @ApiOperation("模版添加、修改接口")
    ResponseResult save(Template template);

    @ApiOperation("模版删除接口")
    ResponseResult delete(Integer id);

    @ApiOperation("模版批量删除接口")
    ResponseResult deleteAll(Integer[] ids);

}
